// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-12-24

#ifndef __MSVR_ROOM_CSBASE_H_SERVER_SVR_MAIN__
#define __MSVR_ROOM_CSBASE_H_SERVER_SVR_MAIN__

#pragma once

#include "msvr_room_score.h"

namespace JoyServer
{

class CJoyMainRoom_CSBase : public CJoyMainRoom_Score
{
public:
    class CUserRoomData_CS : public CUserRoomData_Score
    {
    public:
        virtual bool ReadData(CJoyMainUser* pUser, CJoyDbCommand& readInfo);

        virtual bool Load(CJoyMainUser* pUser);
    };

    virtual CUserRoomData* AllocRoomData();
public:

    CJoyMainRoom_CSBase();
    virtual ~CJoyMainRoom_CSBase();

    virtual bool Create(CJoyMainServer* pServer, CJoyDbSession& onlineSess, CJoyDbCommand& record, UINT roomId, UINT gameId);
};

} // namespace JoyServer

#endif  // __MSVR_ROOM_CSBASE_H_SERVER_SVR_MAIN__